package com.witdata.controller.user;

import com.witdata.common.domain.Result;
import com.witdata.common.domain.Status;
import com.witdata.common.service.UserService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@RequiredArgsConstructor
@RequestMapping("/user/follow")
@Tag(name = "关注接口")
public class FollowController {
    private final UserService userService;

    @PostMapping("")
    public Result<String> follow(@RequestParam("followeeId") Long followeeId) {
        userService.follow(followeeId);
        return Result.ok(Status.USERFOLLOWESUCCESS);
    }
}
